(#1)
twisted Offline
 
Posts: 5
Join Date: Nov 2010
[WCDDL] SEO Mod - 11-15-2010, 02:19 PM

Some modifications to improve the SEO on your site.


Add to .htaccess
Code:
RewriteEngine On  
Options +FollowSymlinks 
RewriteRule ^index\.html$ /index.php [QSA,L,NC] 
RewriteRule ^download-([^/]+)-([^/]+)\.html download.php?id=$1 [QSA,L,NC]

--- --- --- --- ---

Open funcs.php and find

Code:
string($sid)."','".mysql_real_escape_string($titles[$i])."','".mysql_real_escape_string($types[$i])."','".mysql_real_escape_string($urls[$i])."')");

Replace with
Code:
mysql_query("INSERT INTO wcddl_queue (sid,title,type,url) VALUES ('".mysql_real_escape_string($sid)."','".mysql_real_escape_string(remove_words($titles[$i]))."','".mysql_real_escape_string($types[$i])."','".mysql_real_escape_string($urls[$i])."')");

Find
Code:
?>

Add on a new line before

Code:
function remove_words($str){ 
$replace_str = ''; 
$bad_words = array('DVDRIP','XviD','Limited DVDRip','DvDrip-aXXo','aXXo','PROPER','Rip','Cam','\!','\?','\#'); 
    if (!is_array($bad_words)){ $bad_words = explode(' ', $bad_words); } 
    for ($x=0; $x < count($bad_words); $x++){ 
     $fix = isset($bad_words[$x]) ? $bad_words[$x] : ''; 
     $_replace_str = $replace_str; 
     if (strlen($replace_str)==1){ 
     $_replace_str = str_pad($_replace_str, strlen($fix), $replace_str); 
     } 
     $str = preg_replace('/'.$fix.'/i', $_replace_str, $str); 
     $string = preg_replace('/[\s]+/'. '-', $string); 
    } 
    return $str; 
}


Open index.php and Find

Code:
<?=$dl['title']?>
Replace with

Code:
a href="download-<?=$dl['id']?>-<?=str_replace(" ","-",$dl[title])?>.html"><?=$dl[title]?></a>
--- --- --- --- ---

Save and upload all edited files. End of Mod.

Say thanks if this helped you.
Credits to flg for the edits. I'm just posting here
(#2)
linkstar Offline
Probationary Member
 
Posts: 17
Join Date: Aug 2011
09-17-2011, 05:53 PM

working for me thx
(#3)
MrChinn Offline
Probationary Member
 
Posts: 7
Join Date: Mar 2011
12-28-2011, 02:23 AM

thank you, works perfect

Bookmarks

Tags
mod, seo, wcddl

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin


Content Relevant URLs by vBSEO